using System.Configuration;

namespace NHConfiguration
{
    public class Section : ConfigurationSection
    {
        public static Section GetSection()
        {
            Section section =
                (Section)ConfigurationManager.GetSection("isaat.serviceModel");

            return section;
        }

        [ConfigurationProperty("services")]
        public ServiceCollection Services
        {
            get { return this["services"] as ServiceCollection; }
        }

        [ConfigurationProperty("endPoints")]
        public EndPointCollection EndPoints
        {
            get { return this["endPoints"] as EndPointCollection; }
        }
    }
}